Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow simple expansion variables to start with a number #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Parzival-3141
Copy link

Closes #3
Added tests for numbered expansion variables and fixed a formatting verb for p.op rune.

mgood added a commit that referenced this pull request Jan 24, 2024
Verify the current behavior of bracketed numeric names, and an example
test case for simple names in preparation for #4.
Copy link
Owner

@mgood mgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a good start, but it looks like it will parse any mix of numbers and letters as a name, but if the name starts with a number it can only contain numbers. See my comments inline for an example.
I pushed 256a914 to double-check how numeric names were handled in bracket expressions, along with a test case for simple numeric names to verify that they're consistent.

lexer.go Outdated Show resolved Hide resolved
posix_test.go Outdated Show resolved Hide resolved
posix_test.go Outdated Show resolved Hide resolved
Added tests for numbered expansion variables.
Fixed a formatting verb for `p.op` rune.
Removed unecessary test function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow "simple names" to start with an integer
2 participants